﻿using UnityEngine;
using System.Collections;

public class comprar : MonoBehaviour 
{
	public Transform CreatePosition;
	public GameObject Room;

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}


	void OnMouseDown()
	{
		Instantiate (Room, CreatePosition.position, Quaternion.identity);
		CreatePosition.position = new Vector3 (CreatePosition.position.x, CreatePosition.position.y + Room.transform.localScale.y*2, CreatePosition.position.z);
	}

}